<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box{
        display: flex;
        /* flex-direction: row; */
        /* flex-direction: row-reverse; */
        /* flex-direction: column; */
        flex-direction: column-reverse;
        border: 5px;
        background-color: #ff8189;
        width: 500px;
        height: 500px;
    }
    .item1{
        background-color: red;
        width: 100px;
        height: 100px;
        padding: 5px;
        margin:10px ;
        
    }
</style>
<body>
    <div class="box">
        <div class="item1">1</div>
        <div class="item1">2</div>
        <div class="item1">3</div>
        <div class="item1">4</div>

    </div>
</body>
</html>